package com.leather.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.*;

/**
*
*  @author kevin
*/
@Data
@TableName("answer")
public class Answer implements Serializable {

    private static final long serialVersionUID = 1552291018040L;


    /**
    * 主键
    * 默认自增主键
    * isNullAble:0
    */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
    * 回答用户id
    * isNullAble:0
    */
    private Integer userId;

    /**
    * 回答的哪个问题 或者是评论
    * isNullAble:1
    */
    private Integer questionId;

    /**
    * 回答内容
    * isNullAble:1
    */
    private String content;

    /**
    * 回答时间
    * isNullAble:1
    */
    private Date createTime;

    /**
    * 删除标记 0表示未删除 1表示删除
    * isNullAble:1,defaultVal:0
    */
    private Integer flag;

}
